﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyMovieSystem
{
    [Serializable]
    /// <summary>
    /// 影片类
    /// </summary>
    public class Movie
    {
        /// <summary>
        /// 影片ID
        /// </summary>
        public string MovieId { get; set; }
        /// <summary>
        /// 影片名称
        /// </summary>
        public string MovieName { get; set; }
        /// <summary>
        /// 英文名
        /// </summary>
        public string EnglishName { get; set; }
        /// <summary>
        /// 影片类型
        /// </summary>
        public string MovieType { get; set; }
        
        /// <summary>
        /// 国家/语言
        /// </summary>
        public string Country { get; set; }
        
        /// <summary>
        /// 时长
        /// </summary>
        public string MovieDuration { get; set; }
        /// <summary>
        /// 票价
        /// </summary>
        public double MoviePrice { get; set; }
        /// <summary>
        /// 简介
        /// </summary>
        public string MovieAbout { get; set; }
        /// <summary>
        /// 用户评分
        /// </summary>
        public List<double> UserGrade { get; set; }
        /// <summary>
        /// 上映时间
        /// </summary>
        public DateTime BeOnDate { get; set; }
        /// <summary>
        /// 影片路径
        /// </summary>
        public string MoviePath { get; set; }
        /// <summary>
        /// 视频路径
        /// </summary>
        public string VideoPath { get; set; }
        /// <summary>
        /// 放映信息
        /// </summary>
        public List<Hall> HallInfo { get; set; }

        public Movie()
        {
            HallInfo = new List<Hall>();
            UserGrade = new List<double>();
        }
        public Movie(string id, string name,string englishName,string type,  string country,
             string duration, double price, DateTime beOnDate, string about, 
            string moviePath, string videoPath)
        {
            UserGrade = new List<double>();
            HallInfo = new List<Hall>();
            this.MovieId = id;
            this.MovieName = name;
            this.EnglishName = englishName;
            this.MovieType = type;
            this.Country = country;
            this.MovieDuration = duration;
            this.MoviePrice = price;
            this.BeOnDate = beOnDate;
            this.MovieAbout = about;
            this.MoviePath = moviePath;
            this.VideoPath = videoPath;
        }

    }
}
